import request from '@/utils/request'

// 查询考勤管理记录详情列表
export function listSigndetail(query) {
  return request({
    url: '/tongban/signdetail/list',
    method: 'get',
    params: query
  })
}

// 查询考勤管理记录详情详细
export function getSigndetail(detailId) {
  return request({
    url: '/tongban/signdetail/' + detailId,
    method: 'get'
  })
}

// 新增考勤管理记录详情
export function addSigndetail(data) {
  return request({
    url: '/tongban/signdetail',
    method: 'post',
    data: data
  })
}

// 修改考勤管理记录详情
export function updateSigndetail(data) {
  return request({
    url: '/tongban/signdetail',
    method: 'put',
    data: data
  })
}

// 删除考勤管理记录详情
export function delSigndetail(detailId) {
  return request({
    url: '/tongban/signdetail/' + detailId,
    method: 'delete'
  })
}

// 导出考勤管理记录详情
export function exportSigndetail(query) {
  return request({
    url: '/tongban/signdetail/export',
    method: 'get',
    params: query
  })
}